/**
 * Created by Jimmy on 15/9/25.
 */
define([
        'app',
        './API'
    ],
    function (app) {
        'use strict';
        app.factory('AddressAPI', ['API', '$resource',
            function (API, $resource) {
                var _API = new API('address');
                _API.province = angular.extend(new API('address/province'), {});
                _API.city = angular.extend(new API('address/city'), {});
                _API.district = angular.extend(new API('address/district'), {});
                return angular.extend(_API, {});
            }]);
    });
